<?php
/**
 * CreateTime: 2023/11/21 14:34
 * User:LinQ
 */

namespace Database\Seeders\Database;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class DepartmentSeeder extends Seeder
{
    public function run()
    {
        $isExists = DB::table('department')->first();
        if(!$isExists){
            DB::table('department')->insert(
                [
                    'department_name' => '初始部门',
                    'com_id' => 1,
                    'responsible_user_id' => 1,
                    'owner_id' => 1,
                    'created_at' => date("Y-m-d h:i:s"),
                    'updated_at' => date("Y-m-d h:i:s"),
                ]
            );
        }
    }
}